﻿using System.Web.Mvc;
using Zavand.Web.Mvc.Manana.Framework;
using Zavand.Web.Mvc.Manana.SampleWebsite.Areas.Area1.Controllers.Default.Actions.Index;

namespace Zavand.Web.Mvc.Manana.SampleWebsite.Areas.Area1
{
    public class Area1AreaRegistration : BaseAreaRegistration
    {
        public const string Name = "Area1";
        public override string AreaName
        {
            get
            {
                return Name;
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute<Route>(true);

//            context.MapRoute(
//                "Area1_default",
//                "Area1/{controller}/{action}/{id}",
//                new { action = "Index", id = UrlParameter.Optional }
//            );
        }
    }
}
